SetScanLine

Transfers a line of raw pixel data into the imaG image.

Syntax: imaG.SetScanLine nline , colorarray()
nline (long) Indicates which scan line of the image to obtain. Must be in the set [0 ... imaG.ImageResolutionY] .
colorarray() (long array) Contains the scan line’s pixel data. The number of elements needed for the array is equal to imaG.ImageResolutionX.

The color array must be defined with dimensions, with the statment : Dim|Private|Public colorarray(0 To X) As Long . X = imaG.ImageResolutionX - 1.

If MODE PROPERTY is NOT caModeDraw then an ERROR will be thrown.

See also GetScanLine